package com.yan.domain;

public class Architect extends Employee{
    public int num;

    public Architect() {

    }

    public Architect(String id, String name, int age, int salary, int num) {
        super(id, name, age, salary);
        this.num = num;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    @Override
    public void getInfo(){
        System.out.println("编号\t姓名\t年龄\t薪资\t持有股票数");
        System.out.println(id + "\t\t" + name + "\t\t" + age + "\t\t" + salary + "\t\t" + num);
    }
}
